<!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Google Map</title>
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=abcdefg&sensor=true_or_false"
            type="text/javascript">
	</script>
    <script type="text/javascript">
	
            var map;
			var a;
			var b;
			var i=0;
			function initialize() 
			{
				if (GBrowserIsCompatible()) 
				{
					map = new GMap2(document.getElementById("map_canvas"));
					//map.setCenter(new GLatLng(43.7187411617, -79.5207032561), 15);
					//var boundaries = new GLatLngBounds(new GLatLng(43.718732,-79.520833), new GLatLng(43.719036,-79.520781));
					//map.setCenter(new GLatLng(43.7187411617, -79.5207032561), 18);
					map.setCenter(new GLatLng(43.8367730343043, -79.54727321863174), 18);
					
					
					//var boundaries = new GLatLngBounds(new GLatLng( 40.740267423363754,-74.1804572939872), new GLatLng(40.74038326122837,-74.1803406178951));
					//map.setCenter(new GLatLng(43.7187411617, -79.5207032561), 15);
					var boundaries = new GLatLngBounds(new GLatLng(43.8367662627843,-79.5474421977996), new GLatLng(43.837100968424195,-79.547180682420));
					
    var oldmap = new GGroundOverlay("traffic.jpg", boundaries);
   // map.addControl(new GSmallMapControl());
    //map.addControl(new GMapTypeControl());
    map.addOverlay(oldmap);
					GEvent.addListener(map,"click", function(overlay, latlng) 
					{     
					    if (latlng) 
					    { 
						
							var a=latlng.lat();
							var b=latlng.lng();
							var point = new GLatLng(latlng.lat(),latlng.lng());
							map.addOverlay(new GMarker(point));
							var myHtml = "latitude: " + a + " longitude " + b;
							map.openInfoWindow(latlng, myHtml);
   
					    }
					});

				map.setMapType(G_SATELLITE_MAP);
					map.setUIToDefault();
				
			}
		}


    </script>
  </head>
  <body onload="initialize()" onunload="GUnload()">
		<div id="map_canvas" style="width: 1200px; height: 900px"></div>
  </body>
</html>